Auto merge of #4358 - Mark-Simulacrum:fix-cfg-cargo, r=alexcrichton
authorbors <bors@rust-lang.org>
Sat, 26 Aug 2017 17:57:40 +0000 (17:57 +0000)
committerbors <bors@rust-lang.org>
Sat, 26 Aug 2017 17:57:40 +0000 (17:57 +0000)
commit7847f75bb6fc4fee6f511ca740bbe6872c08502b
tree74e57eca0cc9a4050b686871ce866703c893f462
parent8f5e2fc025e3ccd17668647785c62783bb02bce8
parent4cfaf9a591e5c055b87b8eb265c665a4cc1305d9
Auto merge of #4358 - Mark-Simulacrum:fix-cfg-cargo, r=alexcrichton

Discover crate type information late if necessary.

Some crates aren't found during eager crate-type searching due to being behind `cfg(...)` flags. We still want to be able to handle these, though, so when necessary we now call rustc again to get crate-type information for these cfg-ed crates.

This is necessary for https://github.com/rust-lang/rust/pull/41991.

r? @alexcrichton